ClippedShadowDrawable

constructor(ownerView: View)

The base constructor for all API levels requires an ownerView in order to be able to hook into the hardware-accelerated draw routine.

It's rather important to dispose of these instances when appropriate.


@RequiresApi(value = 29)
constructor()

At API level 29, no View is needed.

It is not necessary to call dispose on these instances, but it is safe to do so.